# Contributor: omni <omni+alpine@hack.org>
# Maintainer: omni <omni+alpine@hack.org>
pkgname=verco
pkgver=6.11.0
pkgrel=0
pkgdesc="Simple Git/Mercurial/PlasticSCM tui client based on keyboard shortcuts"
arch="all !s390x !riscv64" # limited by cargo
url="https://github.com/vamolessa/verco"
license="GPL-3.0-or-later"
makedepends="cargo"
options="!check" # No tests
source="$pkgname-$pkgver.tar.gz::https://github.com/vamolessa/verco/archive/refs/tags/v$pkgver.tar.gz"

prepare() {
	default_prepare
	cargo fetch --locked
}

build() {
	cargo build --release --frozen
}

package() {
	install -Dm0755 target/release/verco -t "$pkgdir"/usr/bin
}

sha512sums="
49f5c07b9ae79c9f0d5a7837319ecb9e160e5431d290d00b9d8e89371fdf1105e02b184b57b5127f98762ccdfd2902c882a9058ce99ec0328620661aaf4d3673  verco-6.11.0.tar.gz
"
